<?php
/**
 *      帮助中心
 *      [Jsen.net] (C)2013-2099 Jason Group Science and technology co., LTD.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      http://www.jsen.net
 *      tel:400-681-9511
 */
class HelpController extends HomeBaseController{
    public function _initialize() {
        parent::_initialize();
        $this->db = model('help');
    }

    /* 帮助中心首页 */
    public function index(){
        $list = M("article")->where(" category_id = 9 ")->order("id DESC")->select();
        $SEO=seo(0,"新手解答");
        include template('help_index');
    }
    /* 帮助中心首页 */
    public function about(){
        $info = M("help")->where("fpid=5")->find();
        $SEO=seo(0,"关于我们");
        include template('about');
    }
    // /* 列表 */
    // public function detail($id = '') {
    //     $id = (int) $id;
    //     $rs = $this->db->getById($id);
    //     if($id < 1 || !$rs)
    //         showmessage('参数错误');
    //     extract($rs);
    //     $SEO=seo(0,$title);
    //     include template('help_detail');
    // }    
}